<ul class="nav nav-tabs">
  <li ng-repeat="pane in panes" ng-class="{active: $index == active}">
    <a data-toggle="tab" ng-click="setActive($index, $event)" data-index="{{$index}}" ng-bind-html="pane.title"></a>
  </li>
</ul>
<div class="tab-content">
  <div ng-repeat="pane in panes" class="tab-pane" ng-class="[$index == active ? 'active' : '']" ng-include="pane.template || '$pane'"></div>
</div>
